package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_StockControl", catalog="Id")
public class TccStockControl extends BaseEntity<TccStockControl> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Guid", nameJava="guid", typeDataBase="varchar")
	private String guid;
	@YsField(nameDataBase="RkGuid", nameJava="rkGuid", typeDataBase="varchar")
	private String rkGuid;
	@YsField(nameDataBase="RkBid", nameJava="rkBid", typeDataBase="varchar")
	private String rkBid;
	@YsField(nameDataBase="Cid", nameJava="cid", typeDataBase="varchar")
	private String cid;
	@YsField(nameDataBase="Vhw", nameJava="vhw", typeDataBase="varchar")
	private String vhw;
	@YsField(nameDataBase="Vkq", nameJava="vkq", typeDataBase="varchar")
	private String vkq;
	@YsField(nameDataBase="Gdepot", nameJava="gdepot", typeDataBase="varchar")
	private String gdepot;
	@YsField(nameDataBase="ProductName", nameJava="productName", typeDataBase="varchar")
	private String productName;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="ProductNum", nameJava="productNum", typeDataBase="int")
	private Integer productNum;
	@YsField(nameDataBase="ProductNumAll", nameJava="productNumAll", typeDataBase="int")
	private Integer productNumAll;
	@YsField(nameDataBase="PurchasePrice", nameJava="purchasePrice", typeDataBase="decimal")
	private BigDecimal purchasePrice;
	@YsField(nameDataBase="PurchaseTotalPriceAll", nameJava="purchaseTotalPriceAll", typeDataBase="decimal")
	private BigDecimal purchaseTotalPriceAll;
	@YsField(nameDataBase="AllotPrice", nameJava="allotPrice", typeDataBase="decimal")
	private BigDecimal allotPrice;
	@YsField(nameDataBase="TotalAllotPrice", nameJava="totalAllotPrice", typeDataBase="decimal")
	private BigDecimal totalAllotPrice;
	@YsField(nameDataBase="Sdays", nameJava="sdays", typeDataBase="int")
	private Integer sdays;
	@YsField(nameDataBase="AssembleId", nameJava="assembleId", typeDataBase="varchar")
	private String assembleId;
	@YsField(nameDataBase="PurchaseStorageId", nameJava="purchaseStorageId", typeDataBase="varchar")
	private String purchaseStorageId;
	@YsField(nameDataBase="PurchaseOrderId", nameJava="purchaseOrderId", typeDataBase="varchar")
	private String purchaseOrderId;
	@YsField(nameDataBase="PurchasePlanId", nameJava="purchasePlanId", typeDataBase="varchar")
	private String purchasePlanId;
	@YsField(nameDataBase="Vgsmc", nameJava="vgsmc", typeDataBase="varchar")
	private String vgsmc;
	@YsField(nameDataBase="Vgsjc", nameJava="vgsjc", typeDataBase="varchar")
	private String vgsjc;
	@YsField(nameDataBase="Vgsbm", nameJava="vgsbm", typeDataBase="varchar")
	private String vgsbm;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="Drksj", nameJava="drksj", typeDataBase="datetime")
	private Date drksj;
	@YsField(nameDataBase="IsParent", nameJava="isParent", typeDataBase="int")
	private Integer isParent;
	@YsField(nameDataBase="version", nameJava="version", typeDataBase="int")
	private Integer version;
	@YsField(nameDataBase="Chw", nameJava="chw", typeDataBase="varchar")
	private String chw;
	@YsField(nameDataBase="CompanyVid", nameJava="companyVid", typeDataBase="varchar")
	private String companyVid;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccStockControl setId(Long id) {
		this.id = id;
		return this;
	}
	public String getGuid() {
		return guid;
	}
	public TccStockControl setGuid(String guid) {
		this.guid = guid;
		return this;
	}
	public String getRkGuid() {
		return rkGuid;
	}
	public TccStockControl setRkGuid(String rkGuid) {
		this.rkGuid = rkGuid;
		return this;
	}
	public String getRkBid() {
		return rkBid;
	}
	public TccStockControl setRkBid(String rkBid) {
		this.rkBid = rkBid;
		return this;
	}
	public String getCid() {
		return cid;
	}
	public TccStockControl setCid(String cid) {
		this.cid = cid;
		return this;
	}
	public String getVhw() {
		return vhw;
	}
	public TccStockControl setVhw(String vhw) {
		this.vhw = vhw;
		return this;
	}
	public String getVkq() {
		return vkq;
	}
	public TccStockControl setVkq(String vkq) {
		this.vkq = vkq;
		return this;
	}
	public String getGdepot() {
		return gdepot;
	}
	public TccStockControl setGdepot(String gdepot) {
		this.gdepot = gdepot;
		return this;
	}
	public String getProductName() {
		return productName;
	}
	public TccStockControl setProductName(String productName) {
		this.productName = productName;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public TccStockControl setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public Integer getProductNum() {
		return productNum;
	}
	public TccStockControl setProductNum(Integer productNum) {
		this.productNum = productNum;
		return this;
	}
	public Integer getProductNumAll() {
		return productNumAll;
	}
	public TccStockControl setProductNumAll(Integer productNumAll) {
		this.productNumAll = productNumAll;
		return this;
	}
	public BigDecimal getPurchasePrice() {
		return purchasePrice;
	}
	public TccStockControl setPurchasePrice(BigDecimal purchasePrice) {
		this.purchasePrice = purchasePrice;
		return this;
	}
	public BigDecimal getPurchaseTotalPriceAll() {
		return purchaseTotalPriceAll;
	}
	public TccStockControl setPurchaseTotalPriceAll(BigDecimal purchaseTotalPriceAll) {
		this.purchaseTotalPriceAll = purchaseTotalPriceAll;
		return this;
	}
	public BigDecimal getAllotPrice() {
		return allotPrice;
	}
	public TccStockControl setAllotPrice(BigDecimal allotPrice) {
		this.allotPrice = allotPrice;
		return this;
	}
	public BigDecimal getTotalAllotPrice() {
		return totalAllotPrice;
	}
	public TccStockControl setTotalAllotPrice(BigDecimal totalAllotPrice) {
		this.totalAllotPrice = totalAllotPrice;
		return this;
	}
	public Integer getSdays() {
		return sdays;
	}
	public TccStockControl setSdays(Integer sdays) {
		this.sdays = sdays;
		return this;
	}
	public String getAssembleId() {
		return assembleId;
	}
	public TccStockControl setAssembleId(String assembleId) {
		this.assembleId = assembleId;
		return this;
	}
	public String getPurchaseStorageId() {
		return purchaseStorageId;
	}
	public TccStockControl setPurchaseStorageId(String purchaseStorageId) {
		this.purchaseStorageId = purchaseStorageId;
		return this;
	}
	public String getPurchaseOrderId() {
		return purchaseOrderId;
	}
	public TccStockControl setPurchaseOrderId(String purchaseOrderId) {
		this.purchaseOrderId = purchaseOrderId;
		return this;
	}
	public String getPurchasePlanId() {
		return purchasePlanId;
	}
	public TccStockControl setPurchasePlanId(String purchasePlanId) {
		this.purchasePlanId = purchasePlanId;
		return this;
	}
	public String getVgsmc() {
		return vgsmc;
	}
	public TccStockControl setVgsmc(String vgsmc) {
		this.vgsmc = vgsmc;
		return this;
	}
	public String getVgsjc() {
		return vgsjc;
	}
	public TccStockControl setVgsjc(String vgsjc) {
		this.vgsjc = vgsjc;
		return this;
	}
	public String getVgsbm() {
		return vgsbm;
	}
	public TccStockControl setVgsbm(String vgsbm) {
		this.vgsbm = vgsbm;
		return this;
	}
	public Date getDrksj() {
		return drksj;
	}
	public TccStockControl setDrksj(Date drksj) {
		this.drksj = drksj;
		return this;
	}
	public Integer getIsParent() {
		return isParent;
	}
	public TccStockControl setIsParent(Integer isParent) {
		this.isParent = isParent;
		return this;
	}
	public Integer getVersion() {
		return version;
	}
	public TccStockControl setVersion(Integer version) {
		this.version = version;
		return this;
	}
	public String getChw() {
		return chw;
	}
	public TccStockControl setChw(String chw) {
		this.chw = chw;
		return this;
	}
	public String getCompanyVid() {
		return companyVid;
	}
	public TccStockControl setCompanyVid(String companyVid) {
		this.companyVid = companyVid;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccStockControl setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccStockControl setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccStockControl setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccStockControl tccStockControl(
		String guid,
		String rkGuid,
		String rkBid,
		String cid,
		String vhw,
		String vkq,
		String gdepot,
		String productName,
		String productCode,
		Integer productNum,
		Integer productNumAll,
		BigDecimal purchasePrice,
		BigDecimal purchaseTotalPriceAll,
		BigDecimal allotPrice,
		BigDecimal totalAllotPrice,
		Integer sdays,
		String assembleId,
		String purchaseStorageId,
		String purchaseOrderId,
		String purchasePlanId,
		String vgsmc,
		String vgsjc,
		String vgsbm,
		Date drksj,
		Integer isParent,
		Integer version,
		String chw,
		String companyVid,
		Integer status
			) {
		TccStockControl entity = new TccStockControl();
		entity.setGuid(guid);
		entity.setRkGuid(rkGuid);
		entity.setRkBid(rkBid);
		entity.setCid(cid);
		entity.setVhw(vhw);
		entity.setVkq(vkq);
		entity.setGdepot(gdepot);
		entity.setProductName(productName);
		entity.setProductCode(productCode);
		entity.setProductNum(productNum);
		entity.setProductNumAll(productNumAll);
		entity.setPurchasePrice(purchasePrice);
		entity.setPurchaseTotalPriceAll(purchaseTotalPriceAll);
		entity.setAllotPrice(allotPrice);
		entity.setTotalAllotPrice(totalAllotPrice);
		entity.setSdays(sdays);
		entity.setAssembleId(assembleId);
		entity.setPurchaseStorageId(purchaseStorageId);
		entity.setPurchaseOrderId(purchaseOrderId);
		entity.setPurchasePlanId(purchasePlanId);
		entity.setVgsmc(vgsmc);
		entity.setVgsjc(vgsjc);
		entity.setVgsbm(vgsbm);
		entity.setDrksj(drksj);
		entity.setIsParent(isParent);
		entity.setVersion(version);
		entity.setChw(chw);
		entity.setCompanyVid(companyVid);
		entity.setStatus(status);
		return entity;
	}
}